import * as types from "./mutation-types";
import Api from "api/api";
const state = {
};

const getters = {
};

const actions = {
  //静态化首页
  generateIndexUsingGETS({ commit }, param) {
    return Api.generateIndexUsingPOST(param).then(ret => {
      return ret;
    });
  },
  //生成栏目
  genernateColumnUsingGETS({ commit }, param) {
    return Api.genernateColumnUsingGET(param).then(ret => {
      return ret;
    });
  },
  //生成文章
  generateArticleUsingGETS({ commit }, param) {
    return Api.generateArticleUsingGET(param).then(ret => {
      return ret;
    });
  },
//浏览主页
  viewIndexUsingGETS({ commit }, param) {
    return Api.viewIndexUsingGET(param).then(ret => {
      return ret;
    });
  }
};
const mutations = {
};

export default {
  state,
  getters,
  actions,
  mutations
};
